﻿using System;
using Microsoft.Xna.Framework;

namespace MyCraft.Minecraft_2D.Blocs
{
    class BedRock : Bloc
    {
        #region Attributs
        #endregion

        #region Constructeur
        public BedRock(double timer)
            : base(timer, 10000)
        {
            _light = -30;
            _minLight = 0;
            _id = 5;
            _name = "BedRock";
            _percent = 500;
            _hit = 100;
            _color = Color.Black;
        }
        #endregion

        #region Proprietes
        #endregion

        #region Methodes
        public override TypeBloc OnNew(Block bloc)
        {
            if (bloc.Position.Y > Map.Height - 5)
                return TypeBloc.BedRock;
            return TypeBloc.None;
        }
        public override Bloc OnLife(double timer)
        {
            _life = _maxLife;
            return base.OnLife(timer);
        }
        #endregion
    }
}
